package com.huang.service;

import com.huang.mapper.UserMapper;
import com.huang.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService{

    @Autowired
    private UserMapper mapper;

    @Override
    public List<User> getAll() {


        return mapper.getAll();
    }

    @Override
    public User getId(User user) {


        return  mapper.getId(user);
    }

    @Override
    public void update1(User user) {
        mapper.update1(user);
    }

    @Override
    public void update2(User user) {
        mapper.update2(user);
    }

    @Override
    public void add(User user) {
        mapper.add(user);
    }

    @Override
    public void delete(User user) {
        mapper.delete(user);
    }


}
